package com.example.blogdemo.service;

import com.example.blogdemo.pojo.dataobject.BlogInfo;
import com.example.blogdemo.pojo.request.AddRequest;
import com.example.blogdemo.pojo.request.UpdateBlogRequest;
import com.example.blogdemo.pojo.respond.BlogRespond;
import com.example.blogdemo.pojo.respond.BlogRespondOne;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface BlogService {
    List<BlogRespond> getList();

    BlogRespondOne getBlog(@NotNull(message = "参数不能为null") Integer p);

    boolean addBlgo(AddRequest addRequest);

    Boolean blogDelete(@NotNull(message = "blogId 不能为空") Integer blogId);

    Boolean blogUpdata(UpdateBlogRequest updateBlogRequest);
}
